package com.yb.bluetooth.widgets

import android.content.Context
import android.util.AttributeSet
import android.widget.ListView

/**
 * Created by zyb
 * Date 2021/11/25 14:14
 * Desc
 */

class NoScrollListView(context: Context?, attributeSet: AttributeSet?) : ListView(context, attributeSet) {

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        val expandSpec = MeasureSpec.makeMeasureSpec(Int.MAX_VALUE shr 2, MeasureSpec.AT_MOST)
        super.onMeasure(widthMeasureSpec, expandSpec)
    }
}